package com.chinacoal.microservice.service;

import com.chinacoal.microservice.pojo.CcmsSmartleasingDeviceManagement;
import com.chinacoal.microservice.util.QueryCriteria;
import com.chinacoal.microservice.util.Result;

import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 运维管理-设备管理-后端实现接口类
 * @date 2020-12-17 10：54
 */
public interface DeviceManagementService {
    Result<List<CcmsSmartleasingDeviceManagement>> getAllByPage(QueryCriteria queryCriteria, String token);

    Result<List<CcmsSmartleasingDeviceManagement>> getAllByCondition(QueryCriteria queryCriteria, String token);

    Result<CcmsSmartleasingDeviceManagement> getDeviceById(String pkDeviceManagementId, String token);

    Result updateByDevice(CcmsSmartleasingDeviceManagement deviceManagement, String token);

    Result addByDevice(CcmsSmartleasingDeviceManagement deviceManagement, String token);

    Result getYunDingTokenUrl();

    Result getWeiYuTokenUrl();

    Result getLuMiTokenUrl(String code);

    Result getThirdPartyToken(String yunDingToken, String weiYuToken, String luMiAccessToken, String luMiRefreshToken);
}
